package com.lagou.homework.pojo;
import lombok.Data;
import org.springframework.stereotype.Component;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Timestamp;

@Data
@Entity
@Table(name = "lagou_auth_code")
@Component
public class AuthCode {
    @Id
    private Integer id;
    private String email;
    private String code;
    private Timestamp createtime;
    private Timestamp expiretime;
}
